package com.jvmoutofmemory.octopus;

import com.jvmoutofmemory.octopus.ui.MainOctopusFrame;
import com.jvmoutofmemory.octopus.ui.TrayFactory;

import javax.swing.*;

public class OctopusStartUp {

    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            e.printStackTrace();
        }

        MainOctopusFrame frame = new MainOctopusFrame();
        frame.initialize();
        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        frame.setVisible(true);

        TrayFactory.createSystemTray(frame);
    }
}
